package com.gopay.common.domain.user;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.util.Date;

/**
 * 键盘芭蕾用户信息表
 * @author yu_liu6@hnair.com
 * @date 2018-05-22 16:58:53
 */
@Entity
@Table(name = "PWD_CTRL_FINGER_USER_INFO")
public class PwdCtrlFingerUserInfo extends BaseEntity {

    private static final long serialVersionUID = 7899334849070174278L;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 状态：00-建模中，01-建模成功，02-待注销
     */
    private String status;
    private Date createdTs;
    private Date lastUpdTs;
    /**
     * 乐观锁版本号
     */
    private Integer version;

    @Id
    @Column(name = "USER_NAME", nullable = false)
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Column(name = "STATUS", nullable = false)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Column(name = "CREATED_TS", nullable = false)
    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    @Column(name = "LAST_UPD_TS")
    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "VERSION")
    @Version
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
